<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<!-- view -->
<div id="app">
    <!--组件-->
    <mycom v-for="item in items" v-bind:qin="item"></mycom>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script>
    <!--vue组件-->
    Vue.component("mycom",{
        props: ['qin'],
        template: '<li>{{qin}}</li>'
    })
    <!--model-->
    var vm = new Vue({
        el: "#app",
        data: {
            items: ["java","linux","全段"]
        }
    });
</script>
</body>
</html>